package com.bitejiuyeke.dao;

import com.bitejiuyeke.model.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);

    /**
     * 查询首页的版块列表
     * @param num 个数限制
     * @return List<Board>
     */
    List<Board> selectByNum (@Param("num") Integer num);

}